from tortoise import fields
from tortoise.models import Model


class Schedule(Model):
    schedule_id = fields.IntField(null=False, description="计划表编号")
    plan_id = fields.ForeignKeyField('models.Plan', related_name='schedule')
    start_time = fields.TimeField()
    end_time = fields.TimeField()
